package com.mca.framework.functinalInterface;

import java.util.function.Function;

/**
 * @Author: zhoupeng
 * @createTime: 2025年07月14日 21:23:06
 * @version: 1.0
 * @Description:
 * @copyright:
 */
public class MyFunctionDemo {

    public static  Integer  convert(String value, Function<String,Integer> function){
        return  function.apply(value);
    }

    public static void main(String[] args) {
      String  value="666";
      Integer result=convert(value,(s) ->Integer.parseInt(value)+27);
      System.out.println(result);
    }
}
